﻿<%@ Page Language="C#" AutoEventWireup="true" MasterPageFile="~/MasterPages/Report.Master"
    CodeBehind="SystemOverallReport.aspx.cs" Inherits="Pap.Web.Modules.Reports.Views.SystemOverallReport" %>

<%@ MasterType VirtualPath="~/MasterPages/Report.Master" %>
<asp:Content ID="Content1" ContentPlaceHolderID="ReportTitlePlaceHolder" runat="server">
    <h2 style="text-align: center">
        System Overall Report</h2>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ReportParamsPlaceHolder" runat="server">
    <ext:Store ID="strEducationalLevel" runat="server">
        <Reader>
            <ext:JsonReader ReaderID="EducationalLevelID">
                <Fields>
                    <ext:RecordField Name="EducationalLevelID" />
                    <ext:RecordField Name="EducationalLevelName" />
                </Fields>
            </ext:JsonReader>
        </Reader>
    </ext:Store>
    
    <ext:Store ID="strProjects" runat="server">
        <Reader>
            <ext:JsonReader ReaderID="ProjectID">
                <Fields>
                    <ext:RecordField Name="ProjectID" />
                    <ext:RecordField Name="ProjectName" />
                </Fields>
            </ext:JsonReader>
        </Reader>
    </ext:Store>
    <ext:Store ID="strProjectStage" runat="server">
        <Reader>
            <ext:JsonReader ReaderID="ProjectStageID">
                <Fields>
                    <ext:RecordField Name="ProjectStageID" />
                    <ext:RecordField Name="Stage" />
                </Fields>
            </ext:JsonReader>
        </Reader>
    </ext:Store>
    <ext:Store ID="strSocialStatus" runat="server">
        <Reader>
            <ext:JsonReader ReaderID="SocialStatusID">
                <Fields>
                    <ext:RecordField Name="SocialStatusID" />
                    <ext:RecordField Name="SocialStatusName" />
                </Fields>
            </ext:JsonReader>
        </Reader>
    </ext:Store>
    <ext:Store ID="strLoanType" runat="server">
        <Reader>
            <ext:JsonReader ReaderID="LoanTypeID">
                <Fields>
                    <ext:RecordField Name="LoanTypeID" />
                    <ext:RecordField Name="LoanTypeName" />
                </Fields>
            </ext:JsonReader>
        </Reader>
    </ext:Store>
    <ext:Store ID="strLoanPlaceTypes" runat="server">
        <Reader>
            <ext:JsonReader ReaderID="LoanPlaceID">
                <Fields>
                    <ext:RecordField Name="LoanPlaceID" />
                    <ext:RecordField Name="LoanPlaceName" />
                </Fields>
            </ext:JsonReader>
        </Reader>
    </ext:Store>
    <ext:Store ID="strCommittee" runat="server">
        <Reader>
            <ext:JsonReader ReaderID="CommitteeID">
                <Fields>
                    <ext:RecordField Name="CommitteeID" />
                    <ext:RecordField Name="CommitteeName" />
                </Fields>
            </ext:JsonReader>
        </Reader>
    </ext:Store>
    <ext:Store ID="strResponsibles" runat="server">
        <Reader>
            <ext:JsonReader ReaderID="UserID">
                <Fields>
                    <ext:RecordField Name="UserID" />
                    <ext:RecordField Name="Username" />
                </Fields>
            </ext:JsonReader>
        </Reader>
    </ext:Store>
    <ext:FormLayout ID="FormLayout1" runat="server">
      <ext:Anchor Horizontal="95%">
            <ext:ComboBox runat="server" StoreID="strEducationalLevel" ID="cmbEducationalLevel"
                DisplayField="EducationalLevelName" ValueField="EducationalLevelID" TypeAhead="true"
                Editable="true" FieldLabel="Educational Level" AllowBlank="false" />
        </ext:Anchor>
        <ext:Anchor Horizontal="95%">
            <ext:MultiSelect runat="server" StoreID="strProjects" ID="cmbProject" DisplayField="ProjectName"
                ValueField="ProjectID" TypeAhead="true" Editable="true" FieldLabel="Project"
                AllowBlank="false" />
        </ext:Anchor>
        <ext:Anchor Horizontal="95%">
            <ext:ComboBox runat="server" StoreID="strProjectStage" ID="cmbProjectStage" DisplayField="Stage"
                ValueField="ProjectStageID" TypeAhead="true" Editable="true" FieldLabel="Project Stage"
                AllowBlank="false" />
        </ext:Anchor>
        <ext:Anchor Horizontal="95%">
            <ext:ComboBox runat="server" StoreID="strSocialStatus" ID="cmbSocialStatus" DisplayField="SocialStatusName"
                ValueField="SocialStatusID" TypeAhead="true" Editable="true" FieldLabel="Social Status"
                AllowBlank="false" />
        </ext:Anchor>
        <ext:Anchor Horizontal="95%">
            <ext:NumberField runat="server" ID="txtAgeFrom" AllowBlank="false" FieldLabel="Age From">
            </ext:NumberField>
        </ext:Anchor>
        <ext:Anchor Horizontal="95%">
            <ext:NumberField runat="server" ID="txtAgeTo" AllowBlank="false" FieldLabel="Age To">
            </ext:NumberField>
        </ext:Anchor>
        <ext:Anchor Horizontal="95%">
            <ext:TextField runat="server" ID="txtjob" AllowBlank="false" FieldLabel="Job">
            </ext:TextField>
        </ext:Anchor>
        <ext:Anchor Horizontal="95%">
            <ext:NumberField runat="server" ID="txtFamilyNumberFrom" AllowBlank="false" FieldLabel="Family Number From">
            </ext:NumberField>
        </ext:Anchor>
        <ext:Anchor Horizontal="95%">
            <ext:NumberField runat="server" ID="txtFamilyNumberto" AllowBlank="false" FieldLabel="Family Number To">
            </ext:NumberField>
        </ext:Anchor>
        <ext:Anchor Horizontal="95%">
            <ext:NumberField runat="server" ID="txtAverageSalaryFrom" AllowBlank="false" FieldLabel="AverageSalary From">
            </ext:NumberField>
        </ext:Anchor>
        <ext:Anchor Horizontal="95%">
            <ext:NumberField runat="server" ID="txtAverageSalaryTo" AllowBlank="false" FieldLabel="Average Salary To">
            </ext:NumberField>
        </ext:Anchor>
        <ext:Anchor Horizontal="95%">
            <ext:ComboBox runat="server" StoreID="strLoanType" ID="cmbLoanType" DisplayField="LoanTypeName"
                ValueField="LoanTypeID" TypeAhead="true" Editable="true" FieldLabel="Project Type"
                AllowBlank="false" />
        </ext:Anchor>
        <ext:Anchor Horizontal="95%">
            <ext:ComboBox runat="server" StoreID="strLoanPlaceTypes" ID="cmbLoanPlaceType" DisplayField="LoanPlaceName"
                ValueField="LoanPlaceID" TypeAhead="true" Editable="true" FieldLabel="Loan Place Type"
                AllowBlank="false" />
        </ext:Anchor>
        <ext:Anchor Horizontal="95%">
            <ext:NumberField runat="server" ID="txtLoanPaymentPeriod" AllowBlank="false" FieldLabel="Loan Payment Period">
            </ext:NumberField>
        </ext:Anchor>
        <ext:Anchor Horizontal="95%">
            <ext:NumberField runat="server" ID="txtLoanExecutionAmount" AllowBlank="false" FieldLabel="Loan Execution Amount">
            </ext:NumberField>
        </ext:Anchor>
            <ext:Anchor Horizontal="95%">
            <ext:NumberField runat="server" ID="txtBoardNumber" AllowBlank="false" FieldLabel="Board Number">
            </ext:NumberField>
        </ext:Anchor>
    
        <ext:Anchor Horizontal="95%">
            <ext:DateField runat="server" ID="dtExecutionDateFrom" AllowBlank="false" FieldLabel="Execution Date From" />
        </ext:Anchor>
        <ext:Anchor Horizontal="95%">
            <ext:DateField runat="server" ID="dtExecutionDateTo" AllowBlank="false" FieldLabel="Execution Date To" />
        </ext:Anchor>
        <ext:Anchor Horizontal="95%">
            <ext:DateField runat="server" ID="dtRepaymentTerminationDateFrom" AllowBlank="false"
                FieldLabel="Repayment Termination Date From" />
        </ext:Anchor>
        <ext:Anchor Horizontal="95%">
            <ext:DateField runat="server" ID="dtRepaymentTerminationDateTo" AllowBlank="false"
                FieldLabel="Repayment Termination Date To" />
        </ext:Anchor>
        <ext:Anchor Horizontal="95%">
            <ext:DateField runat="server" ID="dtRequestDateFrom" AllowBlank="false" FieldLabel="Request Date From" />
        </ext:Anchor>
        <ext:Anchor Horizontal="95%">
            <ext:DateField runat="server" ID="dtRequestDateTo" AllowBlank="false" FieldLabel="Request Date To" />
        </ext:Anchor>
        <ext:Anchor Horizontal="95%">
            <ext:TextField runat="server" ID="txtReasonOfRefuse" AllowBlank="false" FieldLabel="Reason of Refuse" />
        </ext:Anchor>
        <ext:Anchor Horizontal="95%">
            <ext:DateField runat="server" ID="dtBoardDateFrom" AllowBlank="false" FieldLabel="Board Date From" />
        </ext:Anchor>
        <ext:Anchor Horizontal="95%">
            <ext:DateField runat="server" ID="dtBoardDateTo" AllowBlank="false" FieldLabel="Board Date To" />
        </ext:Anchor>
        <ext:Anchor Horizontal="95%">
            <ext:MultiSelect runat="server" StoreID="strCommittee" ID="cmbCommittee" DisplayField="CommitteeName"
                ValueField="CommitteeID" TypeAhead="true" Editable="true" FieldLabel="Committee"
                AllowBlank="false" />
        </ext:Anchor>
        <ext:Anchor Horizontal="95%">
            <ext:ComboBox runat="server" StoreID="strResponsibles" ID="cmbResponsibles" DisplayField="Username"
                ValueField="UserID" TypeAhead="true" Editable="true" FieldLabel="Responsible"
                AllowBlank="false" />
        </ext:Anchor>
    </ext:FormLayout>
</asp:Content>
<asp:Content ID="Content4" ContentPlaceHolderID="ReportBodyPlaceHolder" runat="server">
    <asp:GridView ID="gvResult" runat="server" AutoGenerateColumns="true" AllowPaging="true"
        AllowSorting="true">
        <PagerSettings Visible="true" Position="Bottom" Mode="NextPreviousFirstLast" />
        <HeaderStyle BorderStyle="Double" />
    </asp:GridView>
</asp:Content>
